package com.example.android_kakao;

import android.content.*;
import android.view.*;
import android.widget.*;

public class ReciveMsgView extends FrameLayout {

	private ReciveMsgData mData;

	private TextView msgTv;
	private TextView timeTv;
	private TextView writerTv;

	public ReciveMsgView(Context context) {
		super(context);

		LayoutInflater inflater = LayoutInflater.from(context);
		inflater.inflate(R.layout.kakao_recive, this);

		msgTv = (TextView) findViewById(R.id.recive_msg);
		timeTv = (TextView) findViewById(R.id.recive_time);
		writerTv = (TextView) findViewById(R.id.writer_Text);
	}

	public void setData(ReciveMsgData data){
		mData = data;
		msgTv.setText(data.getmMsg());
		timeTv.setText(data.getDataTimeToString());
		writerTv.setText(data.getmWriter());
	}
}
